//
//  GWAudioItem.swift
//  GhostWorld
//
//  Created by Kam on 2018/4/5.
//  Copyright © 2018 LKGood. All rights reserved.
//

import UIKit

class GWAudioItem: UIView {

  // MARK: - IBOutlets
  
  @IBOutlet private weak var nameLabel: UILabel!
//  @IBOutlet private weak var dateLabel: UILabel!
  
  // MARK: - Private vars
  
  
  
  // MARK: - Private methods
  
  
  
  // MARK: - Public vars
  
  
  
  // MARK: - Lifecycle
  
  override func awakeFromNib() {
    super.awakeFromNib()
    
    backgroundColor = .clear
  }
  
  // MARK: - IBActions
  
  
  
  // MARK: - Public methods
  
  func prepare(audio: Audio) {
    nameLabel.text = audio.name
//    dateLabel.text = audio.date != nil ? audio.date?.toString(format: .dateTime) : "--"
  }
}

extension GWAudioItem {
  static var defaultHeight: CGFloat = 44
}

